package com.safe.ly_safe.api;

import com.safe.ly_safe.entity.BaseEntity;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

/**
 * @PACKAGE :com.safe.ly_safe.api
 * @Author : HSF
 * @Time : On 2022/4/22 15:59
 * @Description : ApiService
 */
public interface ApiService {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("index/login/app")
    Observable<BaseEntity<String>> loginMain(@Body RequestBody requestBody);



//    @Headers({"Content-Type: application/json","Accept: application/json"})
//    @POST("server/workLine/backlog")
//    Observable<NeedToDuEntity> getNeedToList(@Body RequestBody requestBody);
//
//    /**
//     * 获取验证码
//     * @param mobile
//     * @return
//     */
//    @POST("app/getAppCode")
//    @FormUrlEncoded
//    Observable<String> getVerifyCode(@Field("mobile") String mobile);

}
